package com.yipinhouse.backstage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yipinhouse.backstage.infra.model.Shop;
import com.yipinhouse.backstage.service.dto.AllShopDto;
import com.yipinhouse.backstage.service.dto.ShopDto;
import com.yipinhouse.backstage.service.param.PromotionServiceParam;
import com.yipinhouse.backstage.service.param.ShopServiceParam;

import java.util.List;

/**
 * <p>
 * 门店表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-30
 */
public interface ShopService extends IService<Shop> {

    /**
     * 添加门店
     * @param shopServiceParam
     * @return
     */
    ShopDto addShop(ShopServiceParam shopServiceParam);

    /**
     * 展示所有门店
     * @return
     */
    List<AllShopDto> listShop();

    /**
     * 展示门店详情
     * @param shopId
     * @return
     */
    ShopDto checkShop(Integer shopId);

    /**
     * 升职，查看门店是否已有店长
     * @param shopId
     */
    void checkShopowner(Integer shopId);

    /**
     * 升职，对门店表插入店长信息
     * @param param
     */
    void promotion(PromotionServiceParam param,Integer shopId);
}
